<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	$(function() {
		parent.$.messager.progress('close');
		
		
		$('#form').form({
			url : '/propertyAdviceController/add',
			onSubmit : function() {
				parent.$.messager.progress({
					title : '提示',
					text : '数据处理中，请稍后....'
				});
				var isValid = $(this).form('validate');
				if (!isValid) {
					parent.$.messager.progress('close');
				}
				return isValid;
			},
			success : function(result) {
				parent.$.messager.progress('close');
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.openner_dataGrid.datagrid('reload');
					parent.$.modalDialog.handler.dialog('close');
				} else {
					$.messager.alert("提示",result.msg, 'info');
				}
			}
		});
	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
		<form id="form" method="post">
			<table class="table table-hover table-condensed">
				<tr>
					<td>标题</td>
					<td >
						<input name="title" type="text" style="width: 200px" />
					</td>
				</tr>
				<tr>
					<td>状态</td>
					<td >
						<input name="status" type="radio" value="0"/>未发布<input name="status" type="radio" value="1"/>已发布
					</td>
				</tr>
				<tr>
					<td>公告内容</td>
					<td >
						<textarea name="content" style="width: 400px;height: 180px"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>